package com.starmark.gateway.log.access.disruptor.translator;


import com.lmax.disruptor.EventTranslatorOneArg;
import com.starmark.gateway.log.access.disruptor.event.LogDataEvent;
import com.starmark.gateway.log.access.entity.GatewayAccessLog;

/**
 * translator for disruptor data.
 *
 * @author starmark
 */
public class LogEventTranslator implements EventTranslatorOneArg<LogDataEvent, GatewayAccessLog> {

    @Override
    public void translateTo(final LogDataEvent soulDataEvent, final long l, final GatewayAccessLog gatewayAccessLog) {
        soulDataEvent.setGatewayAccessLog(gatewayAccessLog);
    }
}
